package com.atguigu.srb.core.service;

import com.atguigu.srb.common.utils.PageUtils;
import com.atguigu.srb.core.entity.UserInfo;
import com.atguigu.srb.core.vo.LoginVO;
import com.atguigu.srb.core.vo.RegisterVO;
import com.atguigu.srb.core.vo.UserIndexVO;
import com.atguigu.srb.core.vo.UserInfoVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 用户基本信息 服务类
 * </p>
 *
 * @author cfx
 * @since 2022-06-25
 */
public interface UserInfoService extends IService<UserInfo> {

    void register(RegisterVO registerVO);

    UserInfoVO login(LoginVO loginVO, String ip);

    PageUtils queryPage(Map<String, Object> params);

    void lock(Long id, Integer status);

    boolean checkMobile(String mobile);

    UserIndexVO getIndexUserInfo(Long userId);

    String getMobileByBindCode(String bindCode);

}

